--自动创建
--日期 9/23/2017
--lua 脚本
local speed = 1
local ticks =0
function Awake()
    -- 初始化
end

function Start()
	-- 开始
    print("luabehavior")
end

function Update()
    -- 每帧更新
    local r = CS.UnityEngine.Vector3.up * CS.UnityEngine.Time.deltaTime * speed
	self.transform:Rotate(r)
    if( ticks > 50)then
        CS.UnityEngine.GameObject.Destroy(go)
        ticks = -1
    end
    if(ticks >=0 )then
        ticks = ticks+1
    end
end

function OnDestroy()
    -- 销毁
end
